package com.services;

import java.util.List;

import com.DAO.SalaryManageRepository;
import com.DAO.impl.SalaryManageRepositoryImpl;
import com.beans.SalaryManage;

public class SalaryService {
	 private SalaryManageRepository sa=new SalaryManageRepositoryImpl();
	 
	 public List<SalaryManage> selectAll(){
		 return sa.selectAll();
	 }
	 
	 public SalaryManage findById(int id) {
		 return sa.findById(id);
	 }
	 
	 public void add(int departmentSno,String post,double baseWage, double allowance,double  lunch,double otherPay,double overtimeWage) {
		 sa.add(departmentSno, post, baseWage, allowance, lunch, otherPay, overtimeWage);
	 }
	 
	 public void update(int id,String post,double baseWage,double  allowance,double lunch,double otherPay,double overtimeWage) {
		 sa.update(id, post, baseWage, allowance, lunch, otherPay, overtimeWage);
	 }
	 public void delete(int id) {
		 sa.delete(id);
	 }
}
